<?php
/**
 * Created by Alan.
 * User: Alan
 * Date: 2018\10\11 0011
 * Time: 15:00
 */

namespace app\api\controller;


use think\Controller;
use think\Db;

class Index extends Controller
{
    public function index($id){

       $result = Db::query('select * from banner_item where banner_id=?',[$id]);

       print_r($result);
    }
}